<template>
  <div class="box">
    <router-view v-if="isRefresh" />
  </div>
</template>

<script setup lang="ts">
import { ref, nextTick, provide } from 'vue'

const isRefresh = ref(true)

const reload = () => {
  isRefresh.value = false
  nextTick(() => {
    isRefresh.value = true
  })
}

provide('reload', reload)
</script>

<style scoped lang="scss"></style>
